#include"Heap.h"
text01()
{
	HP hp;
	HPInit(&hp);
	HPPush(&hp, 15);
	HPPush(&hp, 56);
	HPPush(&hp, 10);
	HPPush(&hp, 30);
	HPPush(&hp, 70);
	HPPush(&hp, 25);
	HPPush(&hp, 5);
	HPPrint(&hp);
	//HPPop(&hp);
	//HPPrint(&hp);
	//HPPop(&hp);
	//HPPrint(&hp);
	//HPPop(&hp);
	//HPPrint(&hp);
	//HPDestroy(&hp);
	printf("%d", HPTop(&hp));
	//while (!HPEmpty(&hp))
	//{
	//	printf("%d ", HPTop(&hp));
	//	HPPop(&hp);
	//}
}
text02()
{
	int arr[] = { 17,20,10,13,19,15 };
	int n = sizeof(arr) / sizeof(arr[0]);
	HeapSort02(arr, n);
	for (int i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	} 
}
int main()
{
    //text01();
	//text02();
	CreateNData();
	top_k();
	return 0;
}